DAY
Returns the day of the date given in the numerical format, a number from 1 to 31.
Syntax
expression.DAY(arg1);
expression
- A variable that represents a ApiWorksheetFunction class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
arg1 | Required | ApiRange | ApiName | number |
Returns
number
Example
const oWorksheet = Api.GetActiveSheet();
var oFunction = Api.GetWorksheetFunction();
var ans = oFunction.DAY("2018/3/16");
oWorksheet.GetRange("C1").SetValue(ans);